home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
internet
/
yam_i_dodatki
/
pgpwithyam
/
signmail.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-06-18
|
625b
|
33 lines
/* Sign a mail with Phil's PGP for YAM */
OPTIONS RESULTS
pgpcommand = '-s'
pgppath = 'Work:pgp/pgp'
CALL CLOSE 'STDOUT'
CALL CLOSE 'STDIN'
CALL OPEN 'STDIN','CON:0/14/1000/200/YAM-REXX/CLOSE'
CALL PRAGMA '*','STDIN'
CALL OPEN 'STDOUT','*'
IF ~SHOW('Ports','YAM') THEN DO
ADDRESS 'COMMAND'
'Run YAM:YAM NOCHECK HIDE'
'SYS:RexxC/WaitForPort YAM'
END
IF SHOW('Ports','YAM') THEN DO
ADDRESS 'YAM'
GETMAILINFO FILE
mailfile = RESULT
ADDRESS 'COMMAND'
'YAM:Rexx/splitmail' mailfile
pgppath pgpcommand 'ram:body'
'join ram:head ram:body.asc to' mailfile
'delete ram:head ram:body ram:body.asc'
END